package com.codi.bitmapfuntest;

import com.codi.bitmapfuntest.util.DebugUtil;

import android.os.Bundle;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.support.v4.util.DebugUtils;
import android.view.Menu;

public class ImageGridActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		if(BuildConfig.DEBUG) {
			DebugUtil.enableStrictMode();
		}
		super.onCreate(savedInstanceState);
		
		if(getFragmentManager().findFragmentByTag(ImageGridFragment.TAG) == null) {
			FragmentTransaction ft = getFragmentManager().beginTransaction();
			ft.add(android.R.id.content, new ImageGridFragment(), ImageGridFragment.TAG);
			ft.commit();
		}
	}

}
